package com.autumn.zero.workflow.listeners;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

import com.autumn.spring.boot.context.AutumnApplicationContext;
import com.autumn.zero.workflow.services.IListenerService;

/**
 * 
 * 
 * @author 杨昌国 2019-01-10 17:49:58
 */
public class ZeroExecutionListener implements ExecutionListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7283794749907146947L;

	@Override
	public void notify(DelegateExecution execution) {
		IListenerService service = AutumnApplicationContext.getContext().getBean(IListenerService.class);
		service.executionListenerNotify(execution);
	}
}
